package com.jianguo.companion.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 订单评价对象 pz_comment
 *
 * @author hxq
 * @date 2024-04-22
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 用户id */
    @Excel(name = "用户id")
    private String userId;
    /** 陪诊员id */
    @Excel(name = "陪诊员id")
    private String companionId;
    /** 地址id */
    @Excel(name = "地址id")
    private String orderId;
    /** 评价 */
    @Excel(name = "评价")
    private String comment;
    /** 总体评价等级 */
    @Excel(name = "总体评价等级")
    private Long ratingOverrall;
    /** 准时性评价 */
    @Excel(name = "准时性评价")
    private Long ratingPunctual;
    /** 沟通能力评价 */
    @Excel(name = "沟通能力评价")
    private Long ratingCommunion;
    /** 服务态度评价 */
    @Excel(name = "服务态度评价")
    private Long ratingAttitude;
    /** 专业技能评价 */
    @Excel(name = "专业技能评价")
    private Long ratingSkill;
    @Excel(name = "用户名")
    private String userName;
    @Excel(name = "陪诊员名")
    private String companionName;
    @Excel(name = "订单地址名")
    private String address;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("companionId", getCompanionId())
                .append("orderId", getOrderId())
                .append("comment", getComment())
                .append("ratingOverrall", getRatingOverrall())
                .append("ratingPunctual", getRatingPunctual())
                .append("ratingCommunion", getRatingCommunion())
                .append("ratingAttitude", getRatingAttitude())
                .append("ratingSkill", getRatingSkill())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .append("remark", getRemark())
                .append("userName", getUserName())
                .append("companionName", getCompanionName())
                .append("address", getAddress())
                .toString();
    }
}
